<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>太阳系全景图 | 星空探索</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        body {
            min-height: 100vh;
            background: linear-gradient(45deg, #1a1a4f 0%, #0a0c27 100%);
            color: #e0e0ff;
            overflow-x: hidden;
        }

        .star-bg {
            position: fixed;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: 
                radial-gradient(circle at 20% 30%, 
                    rgba(255,255,255,0.05) 0%, 
                    transparent 40%),
                repeating-linear-gradient(
                    45deg,
                    transparent 0px,
                    transparent 2px,
                    rgba(255,255,255,0.03) 2px,
                    rgba(255,255,255,0.03) 4px
                );
            animation: starry 120s linear infinite;
        }

        @keyframes starry {
            0% { transform: translate(0,0); }
            100% { transform: translate(-50%,-50%); }
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .header {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .title {
            font-size: 2.8rem;
            color: #FFD700;
            display: inline-flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.5rem;
            text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
        }

        .title::after {
            content: '';
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                #6d5dfc 50%, 
                transparent 100%);
            position: absolute;
            bottom: -10px;
            left: 0;
        }

        .subtitle {
            color: #a78bfa;
            font-size: 1.2rem;
            margin-top: 1rem;
        }

        .nav-bar {
            display: flex;
            gap: 2rem;
            margin-bottom: 3rem;
            padding: 1.2rem;
            background: rgba(255,255,255,0.05);
            border-radius: 16px;
            backdrop-filter: blur(12px);
            justify-content: center;
        }

        .nav-link {
            color: #e0e0ff;
            text-decoration: none;
            padding: 1rem 2rem;
            border-radius: 10px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 1.1rem;
        }

        .nav-link:hover {
            background: rgba(109, 93, 252, 0.2);
            transform: translateY(-3px);
        }

        .nav-link.active {
            background: linear-gradient(145deg, #6d5dfc, #5b4dbe);
            box-shadow: 0 4px 20px rgba(109, 93, 252, 0.4);
        }

        .planet-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            padding: 2rem 0;
        }

        .planet-card {
            background: rgba(255,255,255,0.06);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            border: 1px solid rgba(255,255,255,0.15);
            position: relative;
            overflow: hidden;
            text-decoration: none;
            display: block;
            backdrop-filter: blur(8px);
        }

        .planet-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 12px 40px rgba(0,0,0,0.4);
        }

        .planet-header {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .planet-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            background: linear-gradient(145deg, 
                var(--icon-color1), 
                var(--icon-color2));
            color: white;
            flex-shrink: 0;
        }

        .planet-name {
            font-size: 1.6rem;
            color: #fff;
            letter-spacing: 0.5px;
        }

        .planet-desc {
            color: #a78bfa;
            line-height: 1.7;
            padding-left: 1rem;
            border-left: 3px solid #6d5dfc;
            font-size: 0.95rem;
        }

        @media (max-width: 768px) {
            .container {
                padding: 1.5rem;
            }
            .nav-bar {
                flex-wrap: wrap;
                gap: 1rem;
            }
            .nav-link {
                padding: 0.8rem 1.2rem;
                font-size: 1rem;
            }
            .title {
                font-size: 2.2rem;
            }
        }
    </style>
</head>
<body>
    <div class="star-bg"></div>

    <div class="container">
        <header class="header">
            <h1 class="title">
                <i class="fas fa-sun"></i>
                太阳系全景
            </h1>
            <p class="subtitle">探索我们的宇宙邻居</p>
        </header>

        <nav class="nav-bar">
            <a href="index.html" class="nav-link">
                <i class="fas fa-home"></i>
                太空首页
            </a>
            <a href="solar-system.html" class="nav-link active">
                <i class="fas fa-globe-americas"></i>
                行星图鉴
            </a>
            <a href="missions.html" class="nav-link">
                <i class="fas fa-rocket"></i>
                探测任务
            </a>
        </nav>

        <div class="planet-grid">
            <!-- 水星 -->
            <a href="planets/mercury.html" class="planet-card" 
               style="--icon-color1: #10b981; --icon-color2: #059669;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-temperature-high"></i>
                    </div>
                    <h3 class="planet-name">水星</h3>
                </div>
                <p class="planet-desc">最靠近太阳的行星，昼夜温差达600℃，表面布满撞击坑</p>
            </a>

            <!-- 金星 -->
            <a href="planets/venus.html" class="planet-card"
               style="--icon-color1: #f59e0b; --icon-color2: #d97706;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-cloud-sun"></i>
                    </div>
                    <h3 class="planet-name">金星</h3>
                </div>
                <p class="planet-desc">大气压强是地球92倍，表面温度常年维持在462℃</p>
            </a>

            <!-- 地球 -->
            <a href="#" class="planet-card"
               style="--icon-color1: #3b82f6; --icon-color2: #2563eb;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-globe-asia"></i>
                    </div>
                    <h3 class="planet-name">地球</h3>
                </div>
                <p class="planet-desc">唯一已知存在生命的行星，71%表面被液态水覆盖</p>
            </a>

            <!-- 火星 -->
            <a href="#" class="planet-card"
               style="--icon-color1: #ef4444; --icon-color2: #dc2626;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-mountain"></i>
                    </div>
                    <h3 class="planet-name">火星</h3>
                </div>
                <p class="planet-desc">红色行星，拥有太阳系最高山峰奥林帕斯火山</p>
            </a>

            <!-- 木星 -->
            <a href="#" class="planet-card"
               style="--icon-color1: #f97316; --icon-color2: #ea580c;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-storm"></i>
                    </div>
                    <h3 class="planet-name">木星</h3>
                </div>
                <p class="planet-desc">气态巨行星，拥有持续350年的大红斑风暴</p>
            </a>

            <!-- 土星 -->
            <a href="#" class="planet-card"
               style="--icon-color1: #eab308; --icon-color2: #ca8a04;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-ring"></i>
                    </div>
                    <h3 class="planet-name">土星</h3>
                </div>
                <p class="planet-desc">拥有壮观冰环系统，密度低于水的行星</p>
            </a>

            <!-- 天王星 -->
            <a href="#" class="planet-card"
               style="--icon-color1: #22d3ee; --icon-color2: #06b6d4;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-snowflake"></i>
                    </div>
                    <h3 class="planet-name">天王星</h3>
                </div>
                <p class="planet-desc">倾斜98度自转的冰巨星，大气富含甲烷</p>
            </a>

            <!-- 海王星 -->
            <a href="#" class="planet-card"
               style="--icon-color1: #6366f1; --icon-color2: #4f46e5;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-wind"></i>
                    </div>
                    <h3 class="planet-name">海王星</h3>
                </div>
                <p class="planet-desc">风速达2100km/h，表面温度-214℃的蓝色行星</p>
            </a>

            <!-- 冥王星 -->
            <a href="#" class="planet-card"
               style="--icon-color1: #8b5cf6; --icon-color2: #7c3aed;">
                <div class="planet-header">
                    <div class="planet-icon">
                        <i class="fas fa-icicles"></i>
                    </div>
                    <h3 class="planet-name">冥王星</h3>
                </div>
                <p class="planet-desc">柯伊伯带天体，表面存在氮冰构成的心形区域</p>
            </a>
        </div>
    </div>

    <script>
        // 增强交互功能
        document.addEventListener('DOMContentLoaded', () => {
            // 页面过渡效果
            document.body.style.opacity = 0;
            setTimeout(() => { 
                document.body.style.transition = 'opacity 0.5s ease';
                document.body.style.opacity = 1; 
            }, 100);

            // 链接点击处理
            document.querySelectorAll('a').forEach(link => {
                link.addEventListener('click', function(e) {
                    if (this.href && this.href !== window.location.href) {
                        e.preventDefault();
                        document.body.style.opacity = 0;
                        setTimeout(() => { 
                            window.location.href = this.href; 
                        }, 500);
                    }
                });
            });

            // 卡片3D效果
            document.querySelectorAll('.planet-card').forEach(card => {
                card.addEventListener('mousemove', (e) => {
                    const rect = card.getBoundingClientRect();
                    const x = (e.clientX - rect.left) / rect.width - 0.5;
                    const y = (e.clientY - rect.top) / rect.height - 0.5;
                    
                    card.style.transform = `
                        perspective(1000px)
                        rotateX(${y * 12}deg)
                        rotateY(${-x * 12}deg)
                        translateY(-8px)
                        scale(1.02)
                    `;
                });

                card.addEventListener('mouseleave', () => {
                    card.style.transform = 'none';
                });
            });

            // 导航栏激活状态
            const currentPage = location.pathname.split('/').pop();
            document.querySelectorAll('.nav-link').forEach(link => {
                if (link.getAttribute('href') === currentPage) {
                    link.classList.add('active');
                }
            });
        });
    </script>
</body>
</html>